<?php namespace App\Http\Controllers\Index;

use App\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\Registrar;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;

class AccountController extends Controller
{

    use AuthenticatesAndRegistersUsers;

    protected $redirectPath = '/user';
    protected $loginPath = '/account/login';

    public function __construct(Guard $auth, Registrar $registrar)
    {
        $this->auth = $auth;
        $this->registrar = $registrar;

        $this->middleware('guest', ['except' => 'getLogout']);
    }

    public function getLogin()
    {
        return view('index.account.login');
    }

    public function getRegister()
    {
        return view('index.account.register');
    }
}
